import 'package:demo/common/data/login_data.dart';
import 'package:demo/common/utils/sp_util.dart';

class SpKeys {
  static SpValue<String> token = SpValue(key: "token", defaultValue: "");

  // 测试默认值
  static SpValue<int> test = SpValue(key: "test", defaultValue: 1);

  //测试后缀
  static SpValue<int> testSuffix = SpValue(key: "testSuffix", defaultValue: 0, defaultSuffix: "1");

  static SpObj<LoginData> loginData = SpObj("loginData", fromJson: loginDataFromJson, toJson: loginDataToJson);

  // 本地语言
  static SpValue<String> langCode = SpValue(key: "langCode", defaultValue: "");
}
